package com.example.fresheveryday.po;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ll
 * @since 2023-07-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Shopcart implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 商品id
     */
    @TableField("productId")
    private Integer productid;

    /**
     * 购物车金额
     */
    private BigDecimal money;

    /**
     * 商品数量
     */
    private Integer quantity;

    /**
     * 用户id
     */
    @TableField("userId")
    private String userid;

    /**
     * 购物车创建时间
     */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date created;


}
